<!DOCTYPE html>
<html>
  <head>
    <title>组织机构管理-列表查询</title>
 		<#include "fsoft-common.ftl" />
    <#-- 引入eleTree树控件的样式 -->
 		<link rel="stylesheet" href="${request.contextPath}/plugins/layui/extend/eleTree/eleTree.css">
  </head>
  <body>
    <div class="layui-fluid">
      <div class="layui-row layui-col-space3">
        <div class="layui-col-md2">
          <div class="layui-card">
            <div class="layui-card-body">
              <div id="fsoft-orgTree" lay-filter="fsoft-orgTree" class="fsoft-trees"></div>
            </div>
          </div>
        </div>
        <div class="layui-col-md10">
					<div class="layui-card">
						<div class="layui-card-body">
							<form class="layui-form" action="" id="fsoftSearchForm" lay-filter="fsoftSearchForm" autocomplete="off">
								<#--  记录左边树形选中节点  -->
								<input type="hidden" class="layui-input" name="parents" id="parents">
								<div class="layui-inline layui-show-xs-block">
									<input type="text" class="layui-input" name="code" placeholder="编码模糊搜索" autocomplete="off">
								</div>
								<div class="layui-inline layui-show-xs-block">
									<input type="text" class="layui-input" name="name" placeholder="名称模糊搜索" autocomplete="off">
								</div>
								<div class="layui-inline layui-show-xs-block">
									<button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
										<i class="layui-icon layui-icon-search"></i>搜索
									</button>
								</div>
							</form>
						</div>
						<div class="layui-card-body">
							<table id="sysorg-tbs" class="layui-table" lay-filter="sysorg-tbs"></table>
						</div>
					</div>
				</div>	
            </div>            
        </div> 
    </body>
    <#include "fsoft-common-foot.ftl" /> 
	<script>
		layui.extend({eleTree:'eleTree/eleTree'});
	</script>
	<#-- 这里的 checked 的状态 -->
    <script type="text/html" id="switchStatus">
	  	<input type="checkbox" name="status" value="{{d.status}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" disabled {{ d.status == 1 ? 'checked' : '' }}>
	</script>
	<#--  工具条(头部)  -->
	<script type="text/html" id="fsoft-table-toolbal">
		<div class="layui-btn-container">
			<@perms value="sys:org:save">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
					<i class="fa fa-plus" aria-hidden="true"></i> 新增
				</button>
			</@perms>
			<@perms value="sys:org:remove">
				<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
					<i class="fa fa-trash" aria-hidden="true"></i> 删除
				</button>
			</@perms>
		</div>
	</script>
	<#--  工具栏（操作列）  -->
	<script type="text/html" id="tbRowBar">
		<div class="layui-btn-container">
			<@perms value="sys:org:modify">
			<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</button>
			</@perms>
			<@perms value="sys:org:remove">
			<button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</button>
			</@perms>
		</div>
	</script>
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/org/sysorg-list.js?v=202002"></script>
</html>